const Model = {
    namespace: 'hooks',
    state: {
        count: 0,
    },
    reducers: {
        add(state, { payload }) {
            return {
                ...state,
                ...payload,
            };
        },
        reduce(state, { payload }) {
            return {
                ...state,
                ...payload,
            };
        },
    },
};

export default Model;
